package com.dancun.service.impl;

import com.dancun.entity.Problem;
import com.dancun.mapper.ProblemMapper;
import com.dancun.service.IProblemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-10-02
 */
@Service
public class ProblemServiceImpl extends ServiceImpl<ProblemMapper, Problem> implements IProblemService {
        @Autowired
        ProblemMapper problemDao;
    public List<Problem> listByName(String name){
        return problemDao.listByName("%"+name+"%");
    };
}
